﻿@model BTKERP.Model.Web.SessionEntity
@{
    ViewBag.Title = "Inventory Status";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var reqNo = BTKERP.BLL.Inventory.InventoryActivityMgt.GetRequisitionCountByStatus();
    var doNo = BTKERP.BLL.Inventory.InventoryActivityMgt.GetDOMasterCountByStatus();
}
<h2>Inventory Status</h2>
<!-- Page content -->
	<div id="page">
		<!-- Wrapper -->
		<div class="wrapper">
				<!-- Left column/section -->
				<section class="column width6 first">
				
					<div class="colgroup leading">
						<div class="column width3 first">
							<h3>Welcome back, <a href="#">@Model.Staff.DisplayName</a></h3>
						</div>
					</div>
					
					<div class="colgroup leading">
						<div class="column width3 first">
							<h4>Requisition: <a href="/Requistion/Management">@reqNo.Sum(n=>n.Number).ToString("N0")</a></h4>
							<hr/>
							<table class="no-style full">
								<tbody>
									<tr>
										<td>Total Requistion</td>
										<td class="ta-right"><a href="/Requistion/Management">@reqNo.Sum(n=>n.Number).ToString("N0")</a></td>
									</tr>
									<tr>
										<td>Waitint for Approve</td>
										<td class="ta-right"><a href="/Requistion/Management">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(reqNo,1)</a></td>
									</tr>
									<tr>
										<td>Devliering</td>
										<td class="ta-right"><a href="/Requistion/Management">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(reqNo,2)</a></td>
									</tr>
									<tr>
										<td>Delivered</td>
										<td class="ta-right"><a href="/Requistion/Management">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(reqNo, 5)</a></td>
									</tr>
                                    <tr>
										<td>Rejected</td>
										<td class="ta-right"><a href="/Requistion/Management">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(reqNo,3)</a></td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="column width3">
							<h4>Requisition DO <a href="/RequisitionDO">@doNo.Sum(n=>n.Number).ToString("N0")</a></h4>
							<hr/>
							<table class="no-style full">
								<tbody>
									<tr>
										<td>Total DO</td>
										<td class="ta-right"><a href="/RequisitionDO">@doNo.Sum(n=>n.Number).ToString("N0")</a></td>
									</tr>
									<tr>
										<td>Preparing</td>
										<td class="ta-right"><a href="/RequisitionDO">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(doNo,0)</a></td>
									</tr>
									<tr>
										<td>Devliering</td>
										<td class="ta-right"><a href="/RequisitionDO">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(doNo,2)</a></td>
									</tr>
									<tr>
										<td>Received</td>
										<td class="ta-right"><a href="/RequisitionDO">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(doNo,3)</a></td>
									</tr>
                                    <tr>
										<td>Voided</td>
										<td class="ta-right"><a href="/RequisitionDO">@BTKERP.MVCWeb.AppCode.DataRefHelper.GetStatusCount(doNo,1)</a></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				
					
					<div class="clear">&nbsp;</div>
				
				</section>
				<!-- End of Left column/section -->
        </div>
    </div>
        
<!-- Admin template javascript load -->
<script type="text/javascript" src="../../Scripts/administry.js"></script>

